import { axios } from '@/service/service'

export function getList(): any {
  return axios({
    url: '/statistics/selectCount',
    method: 'get'
  })
}

export function getYearList(year: number | string): any {
  return axios({
    url: '/statistics/selecByYear',
    method: 'post',
    data: {
      year: year
    },
    headers: {
      'Content-Type': 'application/json;charset=UTF-8'
    },
    transformRequest: (params) => JSON.stringify(params)
  })
}
